<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">
	<title>观看列表</title>
</head>
<link rel="stylesheet" type="text/css" href="../styles/index.css">
<script type="text/javascript">
	(function (doc, win) {
        var docEl = doc.documentElement,
            resizeEvt = 'onorientationchange' in window ? 'onorientationchange' : 'resize',
            recalc = function () {
                var clientWidth = docEl.clientWidth;
                if (!clientWidth) return;
                if(clientWidth>=750){
                    docEl.style.fontSize = '20px';
                }else{
                    docEl.style.fontSize = 20 * (clientWidth / 750) + 'px';
                }
            };

        if (!doc.addEventListener) return;
        win.addEventListener(resizeEvt, recalc, false);
        doc.addEventListener('DOMContentLoaded', recalc, false);
    })(document, window);
</script>
<body>
	<div class="warp">

		<section class="lookList">
			<ul>
				<li>
					<a href="">
						<p class="info">
							<span class="slogo"><img src="../images/temp/logo1.jpg"></span>
							<span class="name">林洋</span>
							<span class="time">2017-05-01</span>
						</p>
						<p class="title">软件开发常见调试技巧的原理和实暂</p>
						<p class="about">
							<span class="good">8</span>
							<span class="look">269</span>
							<span class="msg">11</span>
						</p>
						<p class="prcImg">
							<img src="../images/temp/prc.jpg">
						</p>
					</a>
				</li>
<!-- 				<li>
	<a href="">
		<p class="info">
			<span class="slogo"><img src="../images/temp/logo2.jpg"></span>
			<span class="name">林洋</span>
			<span class="time">2017-05-01</span>
		</p>
		<p class="title">软件开发常见调试技巧的原理和实暂</p>
		<p class="about">
			<span class="good">8</span>
			<span class="look">269</span>
			<span class="msg">11</span>
		</p>
		<p class="prcImg">
			<img src="../images/temp/prc.jpg">
		</p>
	</a>
</li>
<li>
	<a href="">
		<p class="info">
			<span class="slogo"><img src="../images/temp/logo2.jpg"></span>
			<span class="name">林洋</span>
			<span class="time">2017-05-01</span>
		</p>
		<p class="title">软件开发常见调试技巧的原理和实暂</p>
		<p class="about">
			<span class="good">8</span>
			<span class="look">269</span>
			<span class="msg">11</span>
		</p>
		<p class="prcImg">
			<img src="../images/temp/prc.jpg">
		</p>
	</a>
</li>
<li>
	<a href="">
		<p class="info">
			<span class="slogo"><img src="../images/temp/logo2.jpg"></span>
			<span class="name">林洋</span>
			<span class="time">2017-05-01</span>
		</p>
		<p class="title">软件开发常见调试技巧的原理和实暂</p>
		<p class="about">
			<span class="good">8</span>
			<span class="look">269</span>
			<span class="msg">11</span>
		</p>
		<p class="prcImg">
			<img src="../images/temp/prc.jpg">
		</p>
	</a>
</li>
<li>
	<a href="">
		<p class="info">
			<span class="slogo"><img src="../images/temp/logo3.jpg"></span>
			<span class="name">林洋</span>
			<span class="time">2017-05-01</span>
		</p>
		<p class="title">软件开发常见调试技巧的原理和实暂</p>
		<p class="about">
			<span class="good">8</span>
			<span class="look">269</span>
			<span class="msg">11</span>
		</p>
		<p class="prcImg">
			<img src="../images/temp/prc.jpg">
		</p>
	</a>
</li>
<li>
	<a href="">
		<p class="info">
			<span class="slogo"><img src="../images/temp/prc.jpg"></span>
			<span class="name">林洋</span>
			<span class="time">2017-05-01</span>
		</p>
		<p class="title">软件开发常见调试技巧的原理和实暂</p>
		<p class="about">
			<span class="good">8</span>
			<span class="look">269</span>
			<span class="msg">11</span>
		</p>
		<p class="prcImg">
			<img src="../images/temp/prc.jpg">
		</p>
	</a>
</li> -->
			</ul>
			<p class="loading"></p>
			<p class="noMore">--我们是有底线的--</p>
		</section>
		
		<footer class="footer">
			<nav class="nav">
				<ul>
					<li class="active">
						<a href="">
							<span class="navA"></span>
							<p>发现</p>
						</a>
					</li>
					<li>
						<a href="">
							<span class="navB"></span>
							<p>圈子</p>
						</a>
					</li>
					<li>
						<a href="">
							<span class="navC"></span>
							<p>阅读</p>
						</a>
					</li>
					<li>
						<a href="">
							<span class="navD"></span>
							<p>我</p>
						</a>
					</li>
				</ul>
			</nav>
		</footer>
	</div>
</body>
<script src="../js/jquery-1.9.1.js"></script>
<script type="text/javascript">

  /*下拉加载更多*/
  $(function(){
  		var end=1;//为1时，下拉才加载更多
  		var i=0;//测试使用，判断加载多少次
  		var li='<li>'+
					'<a href="">'+
						'<p class="info">'+
							'<span class="slogo"><img src="../images/temp/prc.jpg"></span>'+
							'<span class="name">林洋</span>'+
							'<span class="time">2017-05-01</span>'+
						'</p>'+
						'<p class="title">软件开发常见调试技巧的原理和实暂</p>'+
						'<p class="about">'+
							'<span class="good">8</span>'+
							'<span class="look">269</span>'+
							'<span class="msg">11</span>'+
						'</p>'+
						'<p class="prcImg">'+
							'<img src="../images/temp/prc.jpg">'+
						'</p>'+
					'</a>'+
				'</li>';

        $(window).bind("scroll",function(){
        	if($(document).scrollTop()>0){

        		if($(document).scrollTop() + $(window).height() > $(document).height() - 10 && end != 0)// 接近底部100px
	            {
	            	end=0;
	            	console.log($(document).scrollTop());
	            	console.log($(window).height());


	                $('.loading').show();
	                setTimeout(function(){
	                    if(i>20){
	                    	end=0;
	                    	$('.loading').hide();
	                    	$('.noMore').show();
	                    	return false;
	                    };
	                    $('.lookList ul').append(li);
	                    $('.loading').hide();
	                    i++;
	                    end=1;
	                },1000)
	            }

        	}
            
        });
  })
</script>
</html>